package com.deyuanyun.pic.ctrl.service;

import com.deyuanyun.pic.ctrl.controller.dto.exinsp.PipeBaseQuery;
import com.deyuanyun.pic.ctrl.controller.vo.defect.CoatingStatisticsObjVO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.jar.Pack200;

/**
 * 
 * @author ChenKui
 *
 */
public interface CpTestDashboardExpandService {

    
    /**
     * 查询阴保测试桩保护率
     * 保护率=（总测试桩个数-欠保护测试桩个数）*100%/总测试桩个数
     * 
     * @param pipeLineId
     * @param beginMileage
     * @param endMileage
     * @return 返回的Key：ALL_COUNT总/COUNT_Q欠
     */
    Map<String,BigDecimal> queryCpTestStationProtectionRatio(String pipeLineId,Integer beginMileage,Integer endMileage);  
    
    

    /**
     * 查询阴保测试桩运行率
     * 近12个月的数据。
     * 
     * @param pipeLineId
     * @param pipeValveroomIds
     * @return 返回的Key：DOWNDAYCOUNT停机天数/YEARDAYCOUNT总天数
     */
    Map<String,BigDecimal> queryCpTestStationOperatingRatio(String pipeLineId,BigDecimal beginMileage,BigDecimal endMileage);  


    /**
     * 查询阴保测试桩电位情况
     * 
     * @param pipeLineId
     * @param beginMileage
     * @param endMileage
     * @return 返回的Key：CPTEST_STATION_ID/CUSTOM_NUMBER自定义编号/FREE_CORROSION_POTENTIAL自然电位/ON_POTENTIAL通电电位/OFF_POTENTIAL断电电位
     */
    List<Map<String,Object>> queryCpTestStationRecode(String pipeLineId,Integer beginMileage,Integer endMileage);

    /**
     * 查询涂层等级
     *
     * @param pipeBaseQuery
     * @return
     */
    List<Object[]> queryCoatingGrade(PipeBaseQuery pipeBaseQuery);

    /**
     * acvg
     *
     * @param pipeBaseQuery
     * @return
     */
    List<CoatingStatisticsObjVO> queryExinspPcmAcvg(PipeBaseQuery pipeBaseQuery);

    /**
     * 查询“CIPS+DCVG检测记录”
     *
     * @param pipeBaseQuery
     * @return
     */
    List<CoatingStatisticsObjVO> queryExinspCipsDcvg(PipeBaseQuery pipeBaseQuery);


}
